package com.zhixi.pattern.important.proxypattern.JDK.operation;

/**
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/15 17:29
 */
public class User implements IGamePlayer {

    private String name;

    public User(String name) {
        this.name = name;
    }

    @Override
    public void login(String user, String password) {
        System.out.printf("%s账户登录\n", "admin");
    }

    @Override
    public void killBoos() {
        System.out.println(name + "杀怪");
    }

    @Override
    public void upgrade() {
        System.out.println(name + "升级");
    }
}
